var mongoose = require("./mongoose");

// 创建用户表骨架
var schema = new mongoose.Schema({
	userId: String,    //用户id
	userName: String,   //用户昵称
	word: String,      //文字内容
	time: {type: Date, default: Date.now},    //发送时间
	commentNumber: Number,      //评论数
	comment: [{        //评论内容
		content: String,
		userId: String,
		userName: String,
		time: {type: Date, default: Date.now}
	}]
})


module.exports = mongoose.model('word', schema);
	
